package com.shanyin.framework.feign.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import com.shanyin.framework.common.base.ResponseData;
import com.shanyin.framework.common.base.ResponseStatus;

/***
 ** @category 请用一句话来描述其用途...
 ** @author qing.yunhui
 ** @email: 280672161@qq.com
 ** @createTime: 2018年5月30日下午5:07:53
 **/
@Component
public class UserFeignServiceImpl implements UserFeignService{

	Logger logger =LoggerFactory.getLogger(getClass());
	
	@Override
	public ResponseData registered(@RequestParam("phone")String phone,@RequestParam("password")String password,@RequestParam("registerChannel")String registerChannel,@RequestParam("invitationCode")String invitationCode) {
		logger.info("===================>【feign】调用注册接口-【服务提供者异常】...");
		return new ResponseData(ResponseStatus.EXCEPTION, "服务提供者出异常了....");
	}

	@Override
	public ResponseData login(String phone, String password, boolean isPhone) {
		logger.info("===================>【feign】调用登陆接口-【服务提供者异常】...");
		return new ResponseData(ResponseStatus.EXCEPTION, "服务提供者出异常了....");
	}

}
